package com.efast.dmom.mes.entity;

import java.time.LocalDateTime;

import com.efast.dmom.mes.entity.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;

/**
 * 刀具打磨后使用记录
 * @author wj
 * @Date 2020/4/23
 *
 */
public class EquipCutterPolishedRecordEntity extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 9085573007482201159L;
	
	private long spareId;
	private int cutterPolishedOrder;
	private int cutterPolishedUsedTimes;
	
	@JsonDeserialize(using = LocalDateDeserializer.class)
	@JsonSerialize(using = LocalDateSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime cutterPolishedTime;
	
	private int isFlag;
	
	private int submittedQty;
	
	public long getSpareId() {
		return spareId;
	}

	public void setSpareId(long spareId) {
		this.spareId = spareId;
	}

	public int getCutterPolishedOrder() {
		return cutterPolishedOrder;
	}

	public void setCutterPolishedOrder(int cutterPolishedOrder) {
		this.cutterPolishedOrder = cutterPolishedOrder;
	}

	public int getCutterPolishedUsedTimes() {
		return cutterPolishedUsedTimes;
	}

	public void setCutterPolishedUsedTimes(int cutterPolishedUsedTimes) {
		this.cutterPolishedUsedTimes = cutterPolishedUsedTimes;
	}

	public LocalDateTime getCutterPolishedTime() {
		return cutterPolishedTime;
	}

	public void setCutterPolishedTime(LocalDateTime cutterPolishedTime) {
		this.cutterPolishedTime = cutterPolishedTime;
	}

	public int getIsFlag() {
		return isFlag;
	}

	public void setIsFlag(int isFlag) {
		this.isFlag = isFlag;
	}

	public int getSubmittedQty() {
		return submittedQty;
	}

	public void setSubmittedQty(int submittedQty) {
		this.submittedQty = submittedQty;
	}

}
